﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Abreu.Profile.ObjectClasses
{
    public class PermissionProfile
    {
        #region Class Members
        private int? _functionalityId;
        private int? _applicationId;
        private int? _groupId;
        private int? _menuId;
        private Boolean? _denyPermission;
        private Char _statusPermission; 
        #endregion 

        #region Properties
        public int? FunctionalityId
        {
            get { return _functionalityId; }
            set { _functionalityId = value; }
        }

        public int? ApplicationId
        {
            get { return _applicationId; }
            set { _applicationId = value; }
        }

        public int? GroupId
        {
            get { return _groupId; }
            set { _groupId = value; }
        }

        public int? MenuId
        {
            get { return _menuId; }
            set { _menuId = value; }
        }

        public Boolean? DenyPermission
        {
            get { return _denyPermission; }
            set { _denyPermission = value; }
        }

        public Char StatusPermission
        {
            get { return _statusPermission; }
            set { _statusPermission = value; }
        }  
        #endregion

        public PermissionProfile(int? functionalityId, int? applicationId, int? groupId, int? menuId, Boolean? denyPermission, Char statusPermission)
        {
            FunctionalityId = functionalityId;
            ApplicationId = applicationId;
            GroupId = groupId;
            MenuId = menuId;
            DenyPermission = denyPermission;
            StatusPermission = statusPermission;
        }
    }
}
